 :root {
    --primary-color: #fb7299;
    --secondary-color: #00aeec;
    --bg-color: #f7f7f7;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --card-bg: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部导航样式 */
header {
   /*  background-color: #fff; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}


/* 新增：导航栏登录按钮样式 */
.login-btn{
    background-color: #007BFF;
    border: none;
	width:50px;
	height:50px;
    border-radius: 25px;
    padding: 8px 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #0056b3;
}

.logo {
    display: flex;
    align-items: center;
    width:30px;
    color:white;
    height:30px;
}

.logo img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.logo span {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.search-bar {
    position: relative;
    width: 300px;
    margin: 0 20px;
}

.search-bar input {
    width: 100%;
    height: 36px;
    padding: 0 10px 0 36px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background-color: #f5f5f5;
    font-size: 14px;
}

.search-bar i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions button {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    margin-left: 15px;
    font-size: 16px;
    transition: color 0.3s;
}

.user-actions button:hover {
    color: var(--primary-color);
}

/* 用户头像与登录样式 */
/* 头像相关样式 */
.user-avatar {
    position: relative;
    width: 48px; /* 增大到48px */
    height: 48px; /* 增大到48px */
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    display: none;
    margin-left: 10px;
    border: 2px solid #fff; /* 添加边框增强视觉效果 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加阴影 */
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background-color: rgba(251, 114, 153, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.user-avatar:hover .avatar-upload-btn {
    opacity: 1;
}

.avatar-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}


        /* 登录弹窗样式 */
        .login-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .login-popup {
            background: white;
            padding: 30px;
            border-radius: 10px;
            width: 90%;
            max-width: 600px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            position: relative;
            left:35%;
        }

        .tab-header {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
        }

        .tab {
            padding: 10px 20px;
            cursor: pointer;
            color: #666;
            transition: color 0.3s;
        }

        .tab.active {
            color: var(--primary-color);
            border-bottom: 2px solid var(--primary-color);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 24px;
            background: none;
            border: none;
            cursor: pointer;
            color: #666;
        }

        .close-btn:hover {
            color: var(--primary-color);
        }

        .login-title {
            font-size: 24px;
            color: #333;
            margin-bottom: 25px;
            text-align: center;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #555;
            font-size: 14px;
        }

        .form-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
            transition: border-color 0.3s;
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .login-btn {
            width: 50%;
            padding: 12px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.3s;
            margin-left: 25%;
        }

        .login-btn:hover {
            background: #f55a85;
        }

        .error-msg {
            color: #ff4444;
            font-size: 14px;
            margin-top: 10px;
            min-height: 20px;
            text-align: center;
        }

        .corner-img {
            position: absolute;
            width: 80px;
            height: auto;
            transition: opacity 0.3s;
        }

        .left {
            bottom: 0px;
            left: 0px;
        }

        .right {
            bottom: 0px;
            right: 0px;
        }

        .hide {
            opacity: 0;
            pointer-events: none;
        }

        /* 性别单选按钮样式 */
        .gender-group {
            display: flex;
            gap: 20px; 
            margin-top: 8px;
        }

        .radio-label {
            display: flex;
            align-items: center;
            color: #555;
            cursor: pointer;
        }

        .radio-label input {
            width: 16px;
            height: 16px;
            margin-right: 8px;
            cursor: pointer;
        }

        /* 出生日期下拉框样式 */
        .birthday-group {
            display: flex;
            gap: 15px; 
            margin-top: 8px;
        }

        .birthday-select {
            flex: 1; 
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
            color: #555;
            background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
            background-size: 12px;
            appearance: none; 
            cursor: pointer;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .birthday-select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
        }

        .birthday-select:hover {
            border-color: #bbb;
        }

        .birthday-select:invalid {
            color: #999; 
        }

        .birthday-select option {
            color: #555; 
        }

        /* 主要内容区 */
        main {
            padding: 20px 0;
        }

        .content-wrapper {
            display: flex;
            gap: 20px;
        }

        /* 视频播放区 */
        .video-area {
            flex: 2;
            background-color: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .video-header {
            padding: 15px 20px;
            border-bottom: 1px solid var(--border-color);
        }

        .video-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .video-meta {
            display: flex;
            align-items: center;
            font-size: 14px;
            color: var(--light-text);
        }

        .video-meta span {
            margin-right: 15px;
            display: flex;
            align-items: center;
        }

        .video-meta i {
            margin-right: 5px;
        }

        .video-player {
            position: relative;
            width: 100%;
            padding-top: 56.25%; /* 16:9 比例 */
            background-color: #000;
        }

        .video-player video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .danmaku-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            pointer-events: none;
        }

        .danmaku {
            position: absolute;
            white-space: nowrap;
            color: white;
            font-weight: bold;
            user-select: none;
            pointer-events: auto;
        }

        .danmaku-input-area {
            padding: 15px 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
        }

        .danmaku-color-picker {
            width: 30px;
            height: 30px;
            border: none;
            background: none;
            cursor: pointer;
            margin-right: 10px;
        }

        .danmaku-input {
            flex: 1;
            height: 36px;
            padding: 0 15px;
            border: 1px solid var(--border-color);
            border-radius: 18px;
            font-size: 14px;
            outline: none;
        }

        .send-danmaku {
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 18px;
            height: 36px;
            padding: 0 20px;
            margin-left: 10px;
            cursor: pointer;
            font-weight: 500;
            transition: background-color 0.3s;
        }

        .send-danmaku:hover {
            background-color: #f55a85;
        }

        /* 视频信息区 */
        .video-info {
            padding: 20px;
        }

        .up-info {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }

        .up-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            overflow: hidden;
            margin-right: 15px;
        }

        .up-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .up-detail {
            flex: 1;
        }

        .up-name {
            font-weight: bold;
            margin-bottom: 5px;
        }

        .up-name a {
            color: var(--text-color);
            text-decoration: none;
        }

        .up-desc {
            font-size: 14px;
            color: var(--light-text);
        }

        .action-buttons {
            display: flex;
            gap: 10px;
        }

        .action-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 36px;
            padding: 0 15px;
            border: 1px solid var(--border-color);
            border-radius: 18px;
            background-color: white;
            color: var(--text-color);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .action-btn i {
            margin-right: 5px;
        }

        .action-btn:hover {
            background-color: #f5f5f5;
            border-color: #d0d0d0;
        }

        .action-btn.primary {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .action-btn.primary:hover {
            background-color: #f55a85;
        }

        /* 标签和分区 */
        .tags {
            margin: 15px 0;
        }

        .tags span {
            display: inline-block;
            background-color: #f0f0f0;
            color: var(--light-text);
            font-size: 13px;
            padding: 3px 8px;
            border-radius: 4px;
            margin-right: 8px;
            margin-bottom: 8px;
        }

        /* 评论区 */
        .comment-section {
            margin-top: 30px;
            padding: 20px;
		    background-color: var(--card-bg);
		    border-radius: 8px;
		    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
		.comment-section {
    		margin-top: 20px;
		}

		.comment-list {
    		list-style: none;
    		padding: 0;
		}
		
        .section-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border-color);
        }
	/* 评论表单样式 - 整合现有样式并增强交互 */
        .comment-form {
    		display: flex;
    		gap: 15px;
    		margin-bottom: 20px;
		}

        /* 统一头像样式 */
.commenter-avatar-small, .comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

/* 确保图片适应容器 */
.commenter-avatar-small img, .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
		.comment-header {
    		display: flex;
    			align-items: center;
    		margin-bottom: 5px;
		}

.comment-user {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.comment-time {
    color: #999;
    font-size: 12px;
}

.comment-body {
    margin-bottom: 10px;
    line-height: 1.5;
}

.comment-body img {
    max-width: 100%; /* 确保评论中的图片不超过容器宽度 */
    max-height: 200px; /* 限制图片最大高度 */
    object-fit: contain; /* 保持图片比例 */
}

.comment-footer {
    display: flex;
    align-items: center;
}
        .comment-input-container {
            flex: 1;
            position: relative;
        }

      .comment-input {
		    width: 100%;
		    height: 40px;
		    padding: 0 15px;
		    border: 1px solid var(--border-color);
		    border-radius: 20px;
		    font-size: 14px;
		    outline: none;
		    resize: none;
		    transition: border-color 0.3s;
		}
		
		.comment-input:focus {
		    border-color: var(--primary-color);
		}
		
        .send-comment {
		    position: absolute;
		    right: 10px;
		    top: 50%;
		    transform: translateY(-50%);
		    background-color: var(--primary-color);
		    color: white;
		    border: none;
		    border-radius: 18px;
		    height: 30px;
		    padding: 0 15px;
		    cursor: pointer;
		    font-size: 14px;
		    transition: all 0.3s;
		    opacity: 0;
		    visibility: hidden;
		}
		
		.comment-input:focus + .send-comment,
		.comment-input:not(:placeholder-shown) + .send-comment {
		    opacity: 1;
		    visibility: visible;
		}

        .send-comment:hover {
		    background-color: #f55a85;
		}
	
		/* 评论列表样式 - 增强层级显示 */
        .comment-list {
		    list-style: none;
		    padding: 0;
		}

        .comment-item {
		    padding: 15px 0;
		    border-bottom: 1px solid #f0f0f0;
		    position: relative;
		    transition: background-color 0.2s;
		}
		
		.comment-item:hover {
		    background-color: #f9f9f9;
		}
		
		/* 评论头部信息 */
        .comment-header {
		    display: flex;
		    align-items: center;
		    margin-bottom: 8px;
		}

        .commenter-info {
		    display: flex;
		    align-items: center;
		    margin-right: 15px;
		}

        .commenter-avatar-small {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            overflow: hidden;
            margin-right: 8px;
        }

        .commenter-avatar-small img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .commenter-name {
            font-weight: bold;
            margin-right: 8px;
        }

        .comment-time {
            font-size: 12px;
            color: var(--light-text);
        }
		
		/* 评论内容 */
        .comment-content {
		    font-size: 14px;
		    line-height: 1.6;
		    margin-bottom: 10px;
		}

        /* 评论操作区 - 增强交互反馈 */
		.comment-actions {
		    display: flex;
		    align-items: center;
		    font-size: 13px;
		    color: var(--light-text);
		}

        .comment-action {
		    margin-right: 15px;
		    cursor: pointer;
		    display: flex;
		    align-items: center;
		    transition: color 0.2s;
		}

        .comment-action i {
            margin-right: 3px;
        }

        .comment-action:hover {
            color: var(--primary-color);
        }
        /* 点赞和回复按钮基础样式 */
.comment-like, .comment-reply {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 18px;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-right: 10px;
    background-color: #f5f5f5;
}

.comment-like:hover, .comment-reply:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(251, 114, 153, 0.3);
}

/* 点赞按钮样式（默认） */
.comment-like {
    color: #99a2aa;
}

/* 点赞激活状态（粉色+数字加一动画） */
.comment-like.active {
    color: white;
    background-color: var(--primary-color);
    font-weight: bold;
}

.comment-like.active .like-count {
    animation: countUp 0.5s ease;
}

/* 回复按钮样式 */
.comment-reply {
    color: #666;
}

.comment-reply:hover {
    color: white;
}

/* 数字增长动画 */
@keyframes countUp {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
		/* 点赞交互状态 */
		.comment-action.liked {
		    color: var(--primary-color);
		}
		.comment-action.liked i {
		    animation: likePulse 0.5s;
		}
		@keyframes likePulse {
		    0% { transform: scale(1); }
		    50% { transform: scale(1.2); }
		    100% { transform: scale(1); }
		}
		
		/* 回复功能样式 - 新增功能 */
		.reply-section {
		    margin-top: 15px;
		    padding-left: 20px;
		    border-left: 2px solid #eee;
		    display: none; /* 默认隐藏回复区域 */
		}
		
		.reply-section.active {
		    display: block;
		}
		
		.reply-form {
		    display: flex;
		    gap: 10px;
		    margin-top: 10px;
		}
		
		.reply-input {
		    flex: 1;
		    padding: 8px 12px;
		    border: 1px solid var(--border-color);
		    border-radius: 4px;
		    font-size: 14px;
		    outline: none;
		    transition: border-color 0.3s;
		}
		
		.reply-input:focus {
		    border-color: var(--primary-color);
		}
		
		.reply-btn {
		    background-color: var(--primary-color);
		    color: white;
		    border: none;
		    border-radius: 4px;
		    padding: 8px 12px;
		    cursor: pointer;
		    font-size: 14px;
		    transition: background-color 0.3s;
		}
		
		.reply-btn:hover {
		    background-color: #f55a85;
		}
		
		.reply-btn.cancel {
		    background-color: #f0f0f0;
		    color: var(--text-color);
		}
		
		.reply-list {
		    list-style: none;
		    padding: 0;
		    margin-top: 10px;
		}
		
		.reply-item {
		    margin-bottom: 10px;
		    padding: 10px;
		    border-radius: 4px;
		    background-color: #f9f9f9;
		    position: relative;
		}
		
		/* 回复层级缩进 */
		.reply-item:nth-child(n) {
		    margin-left: 15px;
		}
		
		.reply-header {
		    display: flex;
		    align-items: center;
		    margin-bottom: 5px;
		}
		
		.replyer-name {
		    font-weight: bold;
		    margin-right: 5px;
		    color: var(--primary-color);
		}
		
		.reply-content {
		    font-size: 14px;
		    line-height: 1.5;
		}
		
		.reply-actions {
		    display: flex;
		    align-items: center;
		    font-size: 12px;
		    color: var(--light-text);
		    margin-top: 5px;
		}
		
		.reply-action {
		    margin-right: 10px;
		    cursor: pointer;
		}
		
		/* 响应式设计优化 */
		@media (max-width: 768px) {
		    .comment-form {
		        flex-direction: column;
		    }
		    
		    .commenter-avatar {
		        margin-bottom: 10px;
		        margin-right: 0;
		    }
		}

        /* 侧边栏 */
        .sidebar {
            flex: 1;
        }

        .sidebar-card {
            background-color: var(--card-bg);
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
            overflow: hidden;
        }

         .card-header {
            padding: 12px 15px;
            border-bottom: 1px solid var(--border-color);
            font-size: 16px;
            font-weight: bold;
        }

        .recommend-videos {
            padding: 10px;
        }

        .recommend-item {
            display: flex;
            padding: 10px 0;
            border-bottom: 1px solid #f5f5f5;
        }

        .recommend-item:last-child {
            border-bottom: none;
        }

           .recommend-thumbnail {
            width: 100px;
            height: 56px;
            overflow: hidden;
            margin-right: 10px;
            position: relative;
        }

        .recommend-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .recommend-info {
            flex: 1;
        }

        .recommend-title {
            font-size: 14px;
            line-height: 1.4;
            margin-bottom: 5px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .recommend-meta {
            font-size: 12px;
            color: var(--light-text);
            display: flex;
            align-items: center;
        }

        .recommend-meta span {
            margin-right: 8px;
        }

        .recommend-meta i {
            margin-right: 3px;
        }

        /* 底部 */
      	footer {
            background-color: #fff;
            padding: 30px 0;
            margin-top: 40px;
            border-top: 1px solid var(--border-color);
        }

        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
        }

        .footer-column {
            flex: 1;
            min-width: 200px;
            margin-bottom: 20px;
        }

        .footer-column h3 {
            font-size: 16px;
            margin-bottom: 15px;
            color: var(--text-color);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            text-decoration: none;
            color: var(--light-text);
            font-size: 14px;
            transition: color 0.3s;
        }

         .footer-links a:hover {
            color: var(--primary-color);
        }

        .copyright {
            width: 100%;
            text-align: center;
            margin-top: 20px;
            color: var(--light-text);
            font-size: 14px;
        }

        /* 响应式设计 */
        @media (max-width: 992px) {
            .content-wrapper {
                flex-direction: column;
            }

            .sidebar {
                order: -1;
            }
        }

        @media (max-width: 768px) {
            .nav-menu {
                display: none;
            }

            .search-bar {
                width: 200px;
            }
        }


        @media (max-width: 576px) {
            .header-container {
                flex-wrap: wrap;
            }

            .search-bar {
                width: 100%;
                order: 3;
                margin: 10px 0;
            }

            .video-title {
                font-size: 18px;
            }
        }
        /* 播放器整体容器 */
        .bili-player {
            width: 800px;
            margin: 20px auto;
            position: relative;
            background: #000;
            border-radius: 8px;
            overflow: hidden;
        }













        /* 视频区域 */
        .bili-player .container{
            display: flex;
            justify-content: center;  /* 水平居中 */
            align-items: center;     /* 垂直居中 */
            height: 100%;
        }
        .video-container {
            position: relative;
            width: 100%;
            height: 450px; /*16:9比例 */
        }
        #mainVideo {
            width: 100%;
            height: 100%;
            object-fit: cover; /*保持视频比例*/
        } 
        
        
        
        
        
        
        
        
        
        
        
        
        

        /* 弹幕区域（覆盖在视频上） */
        .danmaku-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none; /* 不阻挡点击事件 */
        }
        .danmaku-item {
            position: absolute;
            white-space: nowrap;
            font-size: 16px;
            color: white;
            text-shadow: 0 0 2px rgba(0,0,0,0.8);
            animation: danmaku-scroll 10s linear infinite;
            user-select: none; /* 禁止选中弹幕 */
        }
        @keyframes danmaku-scroll {
            from { transform: translateX(100%); }
            to { transform: translateX(-100%); }
        }

        /* 控制条 */
        .control-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 10px 15px;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            display: flex;
            align-items: center;
            gap: 15px;
            opacity: 0.8; /* 默认淡化 */
            transition: opacity 0.3s;
        }
        .control-bar:hover { opacity: 1; } /* 悬停时完全显示 */
        .control-btn {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            font-size: 18px;
            padding: 5px 8px;
            border-radius: 4px;
            transition: background 0.2s;
        }
        .control-btn:hover { background: rgba(255,255,255,0.1); } /* 悬停反馈 */
       
        /* 进度条 */
        .progress-container {
            flex: 1;
            height: 4px;
            background: rgba(255,255,255,0.3);
            border-radius: 2px;
            cursor: pointer;
        }
        .progress-bar {
            width: 0%;
            height: 100%;
            background: #00A1D6; /* B站主题色 */
            border-radius: 2px;
            position: relative;
        }

        /* 音量条 */
        .volume-container {
            width: 80px;
            height: 4px;
            background: rgba(255,255,255,0.3);
            border-radius: 2px;
            cursor: pointer;
        }
        .volume-bar {
            width: 100%;
            height: 100%;
            background: #00A1D6;
            border-radius: 2px;
        }

        /* 弹幕输入框 */
         .danmaku-input {
            position: absolute;
            bottom: 60px;
            left: 50%;
            transform: translateX(-50%);
            width: 300px;
            padding: 8px 12px;
            background: rgba(0,0,0,0.8);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 20px;
            color: white;
            display: none;
        }

        /* 倍速按钮（B站主题色高亮） */
       #speedBtn { color: #00A1D6; font-weight: 500; }
       
        /* 登录悬浮菜单样式 */
		.login-menu {
		    position: absolute;
		    top: 100%;
		    right: 0;
		    width: 180px;
		    background-color: white;
		    border-radius: 8px;
		    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
		    z-index: 100;
		    opacity: 0;
		    visibility: hidden;
		    transform: translateY(5px);
		    transition: all 0.2s ease;
		}
		
		#login:hover .login-menu {
		    opacity: 1;
		    visibility: visible;
		    transform: translateY(0);
		}
		
		.login-menu ul {
		    list-style: none;
		    padding: 8px 0;
		}
		
		.login-menu li {
		    padding: 10px 15px;
		    cursor: pointer;
		    transition: background-color 0.2s;
		}
		
		.login-menu li:hover {
		    background-color: #f5f5f5;
		}
		
		.login-menu li i {
		    margin-right: 10px;
		    color: #666;
		}
		
		.login-menu .logout {
		    color: #ff4444;
		}
		
		.login-menu .logout:hover {
		    background-color: #fff0f0;
		}
		
		/* 小箭头 */
		.login-menu::before {
		    content: "";
		    position: absolute;
		    top: -8px;
		    right: 20px;
		    width: 16px;
		    height: 16px;
		    background-color: white;
		    transform: rotate(45deg);
		    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
		}
		
		.danmaku {
		  position: absolute;
		  pointer-events: none;
		  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
		  will-change: transform;
		  z-index: 1000;
		  font-weight: bold;
		  font-family: "Microsoft YaHei", sans-serif;
		  user-select: none;
		  opacity: 0.9;
		}
		/* 退出登录悬浮菜单 */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    overflow: hidden;
}

.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 24px;
    width: 16px;
    height: 16px;
    background-color: white;
    transform: rotate(45deg);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.user-menu-item {
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.user-menu-item i {
    width: 24px;
    color: #666;
    transition: color 0.2s;
}

.user-menu-item.logout {
    color: #ff4d4f;
}

.user-menu-item.logout i {
    color: #ff4d4f;
}

.user-menu-item.logout:hover {
    background-color: #fff0f0;
}

.user-menu-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .search-bar {
        width: 200px;
    }

    .comment-form {
        flex-direction: column;
    }

    .commenter-avatar {
        margin-bottom: 10px;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-wrap: wrap;
    }

    .search-bar {
        width: 100%;
        order: 3;
        margin: 10px 0;
    }

    .video-title {
        font-size: 18px;
    }
}

		
		.danmaku_container{
			position:absolute;
			width:100%;
			height:450px;
		}
		
		
		